package cc.mycraft.events;

import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Player;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;

public final class EntityKilledByPlayerEvent extends Event {
	
	private static final HandlerList handlers = new HandlerList();

	@Override
	public HandlerList getHandlers() {
		return handlers;
	}
	
	public static HandlerList getHandlerList() {
		return handlers;
	}
	
	private Player p;
	private LivingEntity le;
	private MobType mt;
	private int prefix;
	
	public EntityKilledByPlayerEvent(Player player,LivingEntity le,MobType mt,int prefix) {
		this.le = le;
		this.mt = mt;
		this.prefix = prefix;
		this.p = player;
	}
	
	public LivingEntity getEntity() {
		return this.le;
	}
	public MobType getMobType() {
		return this.mt;
	}
	public Player getPlayer() {
		return this.p;
	}
	public boolean hasRewardPrefix() {
		return this.prefix>0;
	}
	public int getRewardPrefix() {
		return this.prefix;
	}

	public static enum MobType{
		NORMAL,DMOB,DHYPER,DBOSS,PLAYER;
	}
}
